home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
E-G
/
GetDANames 1.2.cpt
/
GetDANames 1.2
/
card_2282.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
54 lines
-- card: 2282 from stack: in.2
-- bmap block id: 3170
-- flags: 0000
-- background id: 2812
-- name: Syntax & examples
-- part 8 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=73 top=61 right=80 bottom=144
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Button ID
-- part 29 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=20 top=123 right=309 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 21
-- text size: 12
-- style flags: 0
-- line height: 14
-- part name: Syntax & examples
-- part contents for card part 29
----- text -----
-- Put the following statement on a line by itself in your scripts
-- This puts your DA names into an item list in the container "namesOfDAs."
GetDANames
-- Some examples of HyperTalk statements which can make use of this item list:
put namesOfDAs into card field <name or number>
set the name of card button <name or number> to item 3 of namesOfDAs
-- The function below will allow you to repeat some action for each of your DAs:
function numberOfDAs
GetDANames
return the number of items in namesOfDAs
end numberOfDAs
You can then use a loop such as "Repeat with <container> = 1 to numberOfDAs() ..."